package com.strato.transaction.v1_0_0.api;

public class TransactionStatusHolder {

	private static ThreadLocal<TransactionStatus> status=new ThreadLocal<TransactionStatus>();
	
	public static void hold(TransactionStatus status){
		TransactionStatusHolder.status.set(status);
	}
	
	public static TransactionStatus get(){
		return TransactionStatusHolder.status.get();
	}

	public static void unhold(){
		status.remove();
	}
}
